package com.wc.dao;

import com.wc.domain.User;
import com.wc.vo.UserVO;

import java.sql.SQLException;
import java.util.List;

/**
 * @author hc
 * @date 2022/4/9 16:32
 */
public interface UserDao {

    int selectCount() throws SQLException;

    List<User> selectPage(Integer pageNum,Integer pageSize) throws SQLException;

    /**
     * 判断指定的电话号码是否已经存在
     * @param tel
     * @return
     */
    int isTelExists(String tel) throws SQLException;

    /**
     * 添加用户
     * @param user
     * @return
     */
    int insert(User user) throws SQLException;
}
